package com.icoding.fw.entities;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name = Media.TABLE)
@Inheritance(strategy = InheritanceType.JOINED)
@AttributeOverride(name = "id", column = @Column(name = Media.COLUMN_PK))
public class Media extends Article {
	public static final String TABLE = "media";
	public static final String COLUMN_PK = "media_id";

	@Column(name = "file_name")
	private String fileName;

	@Column(name = "extension")
	private String extension;

	@Column(name = "size")
	private String size;

	@Column(name = "status")
	private String status;

	@Column(name = "folder")
	private String folder;

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getExtension() {
		return extension;
	}

	public void setExtension(String extension) {
		this.extension = extension;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getFolder() {
		return folder;
	}

	public void setFolder(String folder) {
		this.folder = folder;
	}

}
